FROM python:3.10-slim-buster

WORKDIR /app

ARG TARGETPLATFORM="linux/amd64"
ARG TARGETARCH="amd64"

COPY . /app/

RUN pip install --find-links=./packages -r requirements.txt

RUN pip install -r /app/requirements.txt;

RUN rm -rf /app/amd64
RUN rm -rf /app/arm64
RUN rm -rf /app/mock_data

EXPOSE 8000
EXPOSE 9000

RUN chmod +x /app/start.sh

CMD ["/bin/bash", "/app/start.sh"] 